package com.bkhc.product.repository;

import com.bkhc.product.entity.BrandGoodPrice;
import com.bkhc.product.entity.UserProduct;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserProductRepository extends JpaRepository<UserProduct,String> , JpaSpecificationExecutor<UserProduct> {

      List<UserProduct> findByProductCode(String productCode);

    List<UserProduct> findByUserId(String userId);
}
